/**
 * Copyright &copy; 2012-2017 <a href="https://vivo.com">vivo</a> All rights reserved.
 */
package com.vivo.dealer.entity;

import org.hibernate.validator.constraints.Length;

import com.thinkgem.jeesite.common.persistence.DataEntity;

/**
 * 仓库Entity
 * @author jyangye
 * @version 2017-11-07
 */
public class VivoWarehouse extends DataEntity<VivoWarehouse> {
	
	private static final long serialVersionUID = 1L;
	private String warehouseId;		// 仓库编号
	private String name;		// 名称
	private String dealerId;		// 经销商编号
	private String matDealerId;		// 物料经销商ID（用于物料仓库）
	private String code;		// 仓库编号
	private String type;		// 仓库类型
	private String property;		// 仓库性质
	private String defaultType;		// 默认仓库类型(0或空:非默认仓库 1:经销商分销默认仓库 2:经销商物料默认仓库)
	private String level;		// 等级
	
	public VivoWarehouse() {
		super();
	}

	public VivoWarehouse(String id){
		super(id);
	}

	@Length(min=1, max=11, message="仓库编号长度必须介于 1 和 11 之间")
	public String getWarehouseId() {
		return warehouseId;
	}

	public void setWarehouseId(String warehouseId) {
		this.warehouseId = warehouseId;
	}
	
	@Length(min=1, max=64, message="名称长度必须介于 1 和 64 之间")
	public String getName() {
		return name;
	}

	public void setName(String name) {
		this.name = name;
	}
	
	@Length(min=0, max=11, message="经销商编号长度必须介于 0 和 11 之间")
	public String getDealerId() {
		return dealerId;
	}

	public void setDealerId(String dealerId) {
		this.dealerId = dealerId;
	}
	
	@Length(min=0, max=11, message="物料经销商ID（用于物料仓库）长度必须介于 0 和 11 之间")
	public String getMatDealerId() {
		return matDealerId;
	}

	public void setMatDealerId(String matDealerId) {
		this.matDealerId = matDealerId;
	}
	
	@Length(min=0, max=10, message="仓库编号长度必须介于 0 和 10 之间")
	public String getCode() {
		return code;
	}

	public void setCode(String code) {
		this.code = code;
	}
	
	@Length(min=0, max=1, message="仓库类型长度必须介于 0 和 1 之间")
	public String getType() {
		return type;
	}

	public void setType(String type) {
		this.type = type;
	}
	
	@Length(min=0, max=1, message="仓库性质长度必须介于 0 和 1 之间")
	public String getProperty() {
		return property;
	}

	public void setProperty(String property) {
		this.property = property;
	}
	
	@Length(min=0, max=1, message="默认仓库类型(0或空:非默认仓库 1:经销商分销默认仓库 2:经销商物料默认仓库)长度必须介于 0 和 1 之间")
	public String getDefaultType() {
		return defaultType;
	}

	public void setDefaultType(String defaultType) {
		this.defaultType = defaultType;
	}
	
	@Length(min=0, max=11, message="等级长度必须介于 0 和 11 之间")
	public String getLevel() {
		return level;
	}

	public void setLevel(String level) {
		this.level = level;
	}
	
}